package com.catering.controller;

import com.catering.pojo.DDishCategories;
import com.catering.service.DDishCategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/dishesType")
public class DishesTypeController {
    @Autowired
    private DDishCategoriesService dDishCategoriesService;
    @RequestMapping("/selectByType")
    public List<DDishCategories> selectByType()
    {
        return dDishCategoriesService.selectByType();
    }
}
